Skip to content

Upgrade from Java 9 to Java 11#4

Open
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1779397175-upgrade-java-11
Open

Upgrade from Java 9 to Java 11#4
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1779397175-upgrade-java-11

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented May 21, 2026

Copy link
Copy Markdown

Summary

Upgrades the project from Java 9 (source/target 1.9) to Java 11 using the release flag.

Changes:

  • pom.xml: Updated maven-compiler-plugin from 3.1 → 3.11.0, switched from source/target 1.9 to release 11, added maven.compiler.release property, bumped JMH from 1.17.4 → 1.37 for Java 11 compatibility
  • Util.java: Replaced new Double(...) (deprecated, marked for removal since Java 9) with Double.parseDouble(...)
  • README.md: Updated JDK requirement from JDK 8 to JDK 11+, pointed download link to Adoptium

Review & Testing Checklist for Human

  • Run mvn clean compile with JDK 11 and verify BUILD SUCCESS
  • Spot-check a sample: cd target/classes && java lambdasinaction.chap1.FilteringApples

Notes

  • The Date(int,int,int) deprecation warning in DateTimeExamples.java is intentional — that file demonstrates old vs. new date APIs for educational purposes.
  • The unchecked warning in StreamForker.java is pre-existing and unrelated to this upgrade.

Link to Devin session: https://app.devin.ai/sessions/0238f210a1284b159d82c46375668edd
Requested by: @TheWuster935


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

- Update maven-compiler-plugin from 3.1 to 3.11.0
- Switch from source/target 1.9 to release 11
- Add maven.compiler.release property
- Bump JMH from 1.17.4 to 1.37 for Java 11 compatibility
- Replace deprecated new Double() with Double.parseDouble() in Util.java
- Update README.md to reference JDK 11+

Co-Authored-By: derek.wu <derekwu35@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant